<include file="Public/header" title="分类列表" />
<include file="Public/sidebar" />

<!-- 内容开始 -->
<div class="col-sm-9 col-xm-9 col-md-10  content">
<form action="__CONTROLLER__/sortCate" method="post">
	<table class="table">
		<tr>
			<th>ID</th>
			<th>名称</th>
			<th>分类级别</th>
			<th>排序(ASC)</th>
			<th>操作</th>
		</tr>
		<foreach name="cate" item="v">
			<tr>
				<td>{$v.id}</td>
				<td>{$v.html}{$v.name}</td>
				<td>{$v.level}</td>
				<td>
					<input type="text" name="{$v.id}" value="{$v.sort}">
				</td>
				<td>
					[<a href="{:U('/__CONTROLLER__/addCate',array("pid"=>$v['id']))}">添加子分类</a>]
					[<a href="{:U('/__CONTROLLER__/changeCate',array("id"=>$v['id'],"pid"=>$v['pid'],"name"=>$v['name']))}">修改</a>]
					[<a href="{:U('/__CONTROLLER__/delCateHandle',array("id"=>$v['id']))}">删除</a>]
				</td>
			</tr>
		</foreach>
		<tr>
			<td colspan="5" align="center">
				<input class="btn btn-success" type="submit" value="排序">
			</td>
		</tr>
	</table>
</form>
</div>
<!-- 内容结束 -->


<include file="Public/footer"  />
